package com.czbank.financing.mapper;

import com.czbank.financing.Entity.UserInfo;
import com.czbank.financing.Entity.UserProductRecommend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: thinkpad
 * @Date: 2019/7/16 19:44
 * @Description:
 */
@Resource(name="userProductRecommendMapper")
public interface UserProductRecommendMapper {

//    @Select("SELECT a.username,c.`product_name`,c.`product_profits`*c.`product_price`*c.`product_limit` profits " +
//            "FROM (user_info a LEFT JOIN user_product b ON a.`id`=b.`uid`)  LEFT JOIN product c ON c.pid = b.`pid`")

    @Select("select * from product_recommend")
    public List<UserProductRecommend> QueryAllUsProRec();
}
